﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InfonavaEye.model.wjapi
{
    public class OCRCommonResult<T>
    {
        [JsonProperty("code")]
        public long code { get; set; }

        [JsonProperty("message")]
        public string msg { get; set; }

        [JsonProperty("data")]
        public T data { get; set; }

        public bool isSuccess()
        {
            return code == 200;
        }
    }
}
